package com.HeJing.面向对象特征之一_封装;

/**
 * ClassName: AnimalTest
 * Package: com.HeJing.封装
 * Description:
 *
 * @Author: HeJing
 * @Create: 2023-03-24 10:45
 * @Version: 1.0
 */
public class AnimalTest {
    public static void main(String[] args) {
        Animal animal01 = new Animal();
        animal01.name = "狗狗";
        animal01.setLegs(4);
        System.out.println(animal01.getLegs());
        animal01.eat();

    }
}





































